package com.itsu.spbspider.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@TableName("tb_job")
@Data
public class Job {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    private String jobName;

    private String status;

    private Long dataCount;

    private Integer timeInterval;

    private Integer retry;

    private String heath;

    private String successPer;

    private Integer crawlerId;

    private String dataObjName;

    @TableField(exist = false)
    private Integer errorCount;

    @TableField(exist = false)
    private Integer successCount;

    private Date lastErrorTime;

    private Date lastExcuteTime;

    @TableField(exist = false)
    private String unit;

}
